Carbon


PBOpenWDAsync

Header: Files.h Carbon status: Unsupported

Creates a working directory.

OSErr PBOpenWDAsync (
    WDPBPtr paramBlock
);
paramBlock

A pointer to a working directory parameter block.

function result

A result code.

DISCUSSION

The relevant fields of the parameter block are:

The PBOpenWDAsync function creates a working directory that corresponds to the directory specified by ioVRefNum, ioWDDirID, and ioWDProcID. (You can also specify the directory using a combination of partial pathname and directory ID.) PBOpenWDAsync returns in ioVRefNum a working directory reference number that can be used in subsequent File Manager calls.

If a working directory having the specified user identifier already exists for the specified directory, no new working directory is opened; instead, the existing working directory reference number is returned in ioVRefNum. If the specified directory already has a working directory with a different user identifier, a new working directory reference number is returned.

If the directory specified by the ioWDDirID parameter is the volume’s root directory, no working directory is created; instead, the volume reference number is returned in the ioVRefNum parameter.

AVAILABILITY

Not supported in Carbon. Not available in Carbon.

CARBON NOTES

Working directories not supported. Use file system specification (FSSpec) records instead.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)